﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.DtoModel.SystemManager;
using SystemCenterSoa.PoModel.SystemManager;

namespace SystemCenterSoa.IRepository.SystemManager
{
    public interface IRoleRepository
    {
        RoleDto GetRoleDtoById(int roleId);
        PagerResult<RolePo> SearchPage(SearchModel searchModel);
        int RolePoAdd(RoleDto view);
        bool RoleUpdate(RoleDto view);
        //根据name来进行获取值
        List<RolePo> GetRolePosByUserName(string userName);
    }
}
